<template>
  <div id="app">
    <keep-alive exclude="Shop">
      <router-view />
    </keep-alive>
    <main-tab-bar v-show="isRouterAlive"/>
    <my-svg />
  </div>
</template>

<script>
import MainTabBar from "components/content/mainTabBar/MainTabBar";
import MySvg from "components/content/svg/MySvg";
export default {
  name: "App",
  data() {
    return {
      isRouterAlive: true,
    };
  },
  provide() {
    return {
      reload: this.reload,
    };
  },
  methods: {
    reload() {
      this.isRouterAlive = false
      this.$nextTick(() => {
        this.isRouterAlive = true
      })
    },
  },
  components: {
    MainTabBar,
    MySvg,
  },
};
</script>

<style lang="less" scoped>
@import url("assets/css/base.css");
</style>
